<?php
/**
 * 注销Action
 * Enter description here ...
 * @author nijn
 *
 */
class LogoutAction extends CAction{
	public $returnUrl;
	public $user = 'adminUser';
	
	public function run() {
		$c = $this->controller;
		Yii::app()->adminUser->logout();
		Yii::app()->user->setFlash(FLASH::RESULT_SUCCESS, '已注销！');
		$c->render('sucess',array('href'=>$this->returnUrl));
	}
}

?>